
CXXFLAGS = -g -gdwarf-2 -Wall
RM = rm -f

.PHONY : clean distclean run

main: main.o
	$(CXX) $(CXXFLAGS) -o main main.o

main.cpp: slang.l
	lex -o main.cpp slang.l

clean:
	$(RM) *.o main

distclean: clean
	$(RM) main.cpp *~ *.kdevelop.filelist *.kdevelop.pcs *.kdevses

run: main
	./main

debug: main
	gdb main
